<style type="text/css">
	.mainAgreeApply{width: 400px;min-height: 200px;}
	.agreeline{width: 100%;height: 30px;display: inline-block;}
	.agreetext1{display: inline-block;width: 90px;line-height: 30px;float: left;}
	.agreetext2{display: inline-block;line-height: 30px;float: left;}
	.agreebtn1{display: inline-block;width: 100px;height: 37px;background: #09A8D2;color: #fff;text-align: center;line-height: 35px;font-size: 16px;border-radius:4px;cursor: pointer;}
	.agreebtn2{display: inline-block;width: 100px;height: 37px;color: #26BBE0;text-align: center;line-height: 35px;font-size: 16px;border-radius:4px;border: 1px solid #26BBE0;margin-left: 10px;cursor: pointer;}
	.Tradio{width: 170px;}
	.chooseOpin{cursor: pointer;}
</style>
 
	<div class="mainAgreeApply" style="width: 400px;">
	      <div class="agreeline">
	      		<span class="agreetext1">申请人账号：</span>
	      		<span class="agreetext2" style="color:#26BBE0;">${login!}</span>
	      </div>
	      <div class="agreeline">
	      		<span class="agreetext1">申请人姓名：</span>
	      		<span class="agreetext2" style="color:#26BBE0;">${realName!}</span>
	      </div>
	      <div style="width: 100%;height: 8px;border-bottom: 1px solid #ddd;"></div>
	      <div class="agreeline">
	      		<span class="agreetext1">拒绝理由：</span>
	      </div>
	      <div class="agreeline" style="height: 30px;margin-top: 6px;">
	      		<span class="agreetext1 Tradio"><label class="chooseOpin"><input type="radio" name="auditOpinion" value="非本公司员工" checked="checked">非本公司员工</label></span>
	      		<span class="agreetext1 Tradio"><label class="chooseOpin"><input type="radio" name="auditOpinion" value="身份信息未填写完整">身份信息未填写完整</label></span>
	      </div>
	      <div class="agreeline" style="height: 43px;">
	      		<span class="agreetext1 Tradio"><label class="chooseOpin"><input type="radio" name="auditOpinion" value="身份信息填写错误">身份信息填写错误</label></span>
	      		<span class="agreetext1 Tradio"><label class="chooseOpin"><input type="radio" name="auditOpinion" value="其它">其它</label></span>
	      </div>
	      <div class="agreeline">
	      		<span class="agreetext1" style="height: 30px;"></span>
	      		<span class="agreebtn1">确定</span>
	      		<span class="agreebtn2">取消</span>
	      </div>
	</div>
<script type="text/javascript">
$(document).ready(function(){
	var userId='${uid}';
	$(".agreebtn2").click(function(){
		layer.close(agreeLayerindex);
	})
	
	$(".agreebtn1").click(function(){
		 var layerIndex;
		 var auditOpinion=$("[name='auditOpinion']:checked").val();
		 $.ajax({
	         url :'doRefuseApplyUser',
	         type : 'post',
	         dataType : 'json',
	         data:{userId:userId,auditOpinion:auditOpinion},
			 beforeSend : function () {
				 layerIndex = layer.load(1, {
					  shade: [0.1,'#fff'] //0.1透明度的白色背景
					});
	         },
	         success : function(data) {
	        	 if(data.success){
	            	 layer.alert(data.msg,function(){
	            		 location.href='/employee/employeeApply_list';
	            	 });
	             }else{
	            	 layer.alert(data.msg);
	             }
	         },
			 complete : function() {
				layer.close(layerIndex);
			 }
	     })

	})
})
</script>